﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Controls;

namespace WasaWasa.Converters
{
    public class IsDecimalRule : ValidationRule
    {
        public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
        {
            decimal d;
            return new ValidationResult(decimal.TryParse(value as string, out d), null);
        }
    }
}
